import request from "@/utils/request.js";
/**
 * 查询待审批列表
 * @param params
 */
export const pendingPage = query => {
  return request({
    url: "/purchase/approval/pendingPage",
    method: "get",
    params: query
  });
};

/**
 * 查询已审批列表
 * @param params
 */
export const finishPage = query => {
  return request({
    url: "/purchase/approval/finishPage",
    method: "get",
    params: query
  });
};

/**
 * 查询审批详情查询
 * @param params
 */
export const approvalDetail = query => {
  return request({
    url: "/purchase/approval/approvalDetail/" + query,
    method: "get"
  });
};

/**
 * 审批确认
 * @param params
 */
export const approvalPass = query => {
  return request({
    url: "/purchase/approval/approvalPass/" + query,
    method: "get"
  });
};

// 省市区
export const getArea = () => {
  return request({
    url: "/dbo/region/tree"
  });
};

//数据字典
export const getOptionselect = () => {
  return request({
    url: "/dbo/system/dict/type/getAll",
    method: "get"
  });
};
